﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/main.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/Common/jquery-1.4.1.js")" type="text/javascript"></script>
    <link  href="@Url.Content("~/scripts/common/ymPrompt/skin/qq/ymPrompt.css")" type="text/css" rel="stylesheet"/>
    <link href="@Url.Content("~/scripts/common/jquery.scombo/theme/default/jquery.scombo.css")" rel="stylesheet"
                type="text/css" />
    <link href="@Url.Content("~/Content/public.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/Common/jquery.ui/themes/base/ui.all.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/Common/jqGrid/css/ui.jqgrid.css")" rel="stylesheet" type="text/css" />
    @RenderSection("Style", false)
</head>
<body>
    @{
        var locationStr = "";
        if (ViewData["Location"] != null)
        {
            var templ = ViewData["Location"] as string[];
            if (templ != null && templ.Length > 0)
            {
                locationStr += " \u00bb ";

                for (int i = 0; i < templ.Length; i++)
                {
                    locationStr += templ[i];
                    if (i != templ.Length - 1)
                    {
                        locationStr += " \u00bb ";
                    }
                }
            }
        }
    }
    <div>
        <table cellspacing="0" id="actionList">
            <tbody>
                <tr>
                    <td class="blankAction" style="width: 10px;">
                        &nbsp;
                    </td>
                    <td id="checkedAction" class="lastAction">
                        @ViewBag.Title
                    </td>
                    <td class="blankAction">
                        &nbsp;
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="queryDiv">
            @RenderSection("Query", false)
        </div>
        <div class="listDiv">
            @RenderBody()
        </div>
    </div>
    <script src="@Url.Content("~/Scripts/Common/PageInit.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/ymPrompt/ymPrompt.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/dialog/dialog.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/jquery.ui/compressed/jquery-ui.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/jquery.cookie/jquery.cookie.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/jqGrid/i18n/grid.locale-en.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/jqGrid/min/jquery.jqGrid.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/JqGridInit.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/calendar/WdatePicker.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/jquery.scombo/jquery.scombo.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/TBSerials.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common/Json2.js")" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(function () {
            var ls = '@locationStr';
            if (ls) {
                parent.document.getElementById("spLocation").innerHTML = ls;
            }
        })
        //刷新表格
        function ReloadGrid() {
            $("#list").trigger("reloadGrid");
        }
    </script>
    @RenderSection("Script", false)
</body>
</html>
